package de.tum.softwarengineering1.ws201112.team11.sudoku.util;
import de.tum.softwarengineering1.ws201112.team11.sudoku.model.IDifficulty;
import de.tum.softwarengineering1.ws201112.team11.sudoku.model.SudokuBoard;


public class DifficultyContext {
	
	//Difficulty Context is realized as a singleton
	private static DifficultyContext context = null;
	
	public static DifficultyContext getDifficultyContext(){
		if(context == null){
			context = new DifficultyContext();
		}
		
		return context;
	}
	
	private DifficultyContext(){
		
	}
	
	private IDifficulty difficulty = null;

	public void buildGrid(SudokuBoard board) {
		
		difficulty.buildSudoku(board);
	}

	public IDifficulty getDifficulty() {
	 return difficulty;
	}

	public void setDifficulty(IDifficulty difficulty) {
	 this. difficulty =  difficulty;
	}

}
